package com.burstly.lib.component;

import com.burstly.lib.feature.networks.IAdaptorFactory;
import com.burstly.lib.util.LoggerExt;
import java.util.Map;

class AdaptorFactoryWrapper
  implements IAdaptorFactory
{
  private static final LoggerExt LOG = LoggerExt.getInstance();
  private static final String TAG = AdaptorFactoryWrapper.class.getSimpleName();
  private final IAdaptorFactory mFactory;
  private boolean mInitialized;

  AdaptorFactoryWrapper(IAdaptorFactory paramIAdaptorFactory)
  {
    this.mFactory = paramIAdaptorFactory;
  }

  public IBurstlyAdaptor createAdaptor(Map<String, ?> paramMap)
  {
    return this.mFactory.createAdaptor(paramMap);
  }

  public void destroy()
  {
    this.mFactory.destroy();
  }

  public void initialize(Map<String, ?> paramMap)
    throws IllegalArgumentException
  {
    if (!this.mInitialized)
    {
      LoggerExt localLoggerExt = LOG;
      String str = TAG;
      Object[] arrayOfObject = new Object[1];
      arrayOfObject[0] = this.mFactory.toString();
      localLoggerExt.logDebug(str, "Initializing {0}", arrayOfObject);
      this.mFactory.initialize(paramMap);
      this.mInitialized = true;
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.AdaptorFactoryWrapper
 * JD-Core Version:    0.6.2
 */